package com.codeplateform.service.impl;

import com.codeplateform.dao.LoginLogDao;
import com.codeplateform.dao.entity.LoginLog;
import com.codeplateform.service.LoginLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class LoginLogImpl implements LoginLogService {

    @Autowired
    LoginLogDao loginLogDao;

    @Override
    public int log_info(LoginLog loginLog) {


        try{
            return  loginLogDao.insert(loginLog);
        }catch (Exception e){
           e.printStackTrace();
        }

            return -1;
    }
}
